package com.my.swas.sso.module.admin.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.my.swas.common.jwt.JWTToken;
import com.my.swas.sso.module.admin.entity.Menu;
import com.my.swas.sso.module.admin.vo.ResTreeSelectVo;
import com.my.swas.sso.module.admin.vo.ZTreeMenuVo;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * @Description:
 * @author: :MaYong
 */
public interface MenuService extends IService<Menu> {
    List<Menu> loadUserResources(@Param("userId") Long userId);

    /**
     * 查询角色对应的资源权限信息
     * @param RoleId
     * @return
     */
    List<ZTreeMenuVo> queryResourcesByRoleId(List<Long> roleIds);


    List<ResTreeSelectVo> treeSelectList(Long parentId,Integer type,JWTToken jwtToken);
}
